<?
include("config.php");

$s = mssql_query("select * from tmp_pend");
while($r = mssql_fetch_array($s)){
   $t = mssql_query("update pendidikan set pend_id='".$r[pend_id_new]."' where pend_id='".$r[pend_id_old]."'");
	if($t){
		echo "OK<br>";
	}
	else{
		echo"BAD <br>";
	}
}

			  
?>